package factory.method;

public class Setup {
    public static void main(String[] args) {
    	BaseFactory factory = new Product1Factory();  
    	Function function = factory.create();  
    	function.run();  
    	
    	BaseFactory factory2 = new Product2Factory();  
    	Function function2 = factory2.create();  
    	function2.run();  
    }
}
